<?php

namespace App\Http\Model;
use phpDocumentor\Reflection\Types\Self_;

/**
 * @desc 返回提示信息
 * Class Hint
 * @package app\api\service
 */
class Hint
{
    // 通用提示
    const ERROR = -1;
    const SUCCESS = 0;
    const PARAM_ERROR = 1;
    const AUTH_ERROR = 2;
    const NOT_ALLOWED = 3;
    const LOGIN_OUT = 4;
    const TOKEN_ERROR = 5;
    const SIGN_ERROR = 6;
    const NOT_ALLOW_SEND_CODE = 7;
    const WAIT_OPEN = 8;
    const NEED_CAPTCHA_CODE = 9;
    const CHECK_CAPTCHA_CODE_ERROR = 10;
    const NEW_VERSION_MSG = 11;
    const NEED_SHUMEI_CODE = 12;
    const SAME_TIME_NOT_REPEAT = 13;
    const VERSION_UPDATE_NOTICE = 14;
    const JUVENILES_NOT_REWARD = 15;
    const JUVENILES_NOT_REWARD_NEW_MSG = 16;
    //客户端会根据此错误码调起实名认证
    const NOT_REAL_NAME_RECHARGE_LIMIT = 17;
    const JUVENILES_NOT_RED_PACKET = 18;
    const NOT_AUDIT_NOT_RED_PACKET = 19;
    const JUVENILES_NOT_VERIFY = 20;
    const NEED_CONTENT_AND_IMAGE=21;

    // 业务 房间
    const ROOM_NO_EXIST = 1001;
    const ROOM_USER_IS_EXIST = 1002;
    const ROOM_USER_NOT_EXIST = 1003;
    const ROOM_MICRO_NOT_EXIST = 1004;
    const ROOM_MICRO_IS_FULL = 1005;
    const ROOM_MICRO_NOT_NULL = 1006;
    const ROOM_MICRO_IS_NULL = 1007;
    const ROOM_MICRO_USER_IS_EXIST = 1008;
    const ROOM_MICRO_USER_NOT_EXIST = 1009;
    const ROOM_WAITBIT_IS_EXIST = 1010;
    const ROOM_WAITBIT_NOT_EXIST = 1011;
    const ROOM_MICRO_IS_LOCK = 1012;
    const ROOM_USER_SHOT_OFF = 1013;
    const ROOM_IS_CERTIFY = 1014;
    const ROOM_RADIO_NOT_SET = 1015;
    const ROOM_NOT_OPEN = 1016;
    const ROOM_IS_OPEN = 1017;
    const ROOM_ROLE_ROOM_MAX = 1018;
    const ROOM_PASSWORD_NEED = 1019;
    const ROOM_PASSWORD_ERR = 1020;
    const ROOM_TYPE_NOT_ALLOWED = 1021;
    const ROOM_TYPE_NOT_EXIST = 1022;
    const ROOM_MICRO_IS_CP = 1023;
    const ROOM_MICRO_GUARD_MATCH = 1024;
    const ROOM_MICRO_GUARD_NOT_EXIST = 199;
    const ROOM_HOSTMICRO_IS_NULL = 1098;
    const ROOM_NOT_CERTIFIED = 1026;
    const ROOM_NO_ROCKON_GIFT_TIME = 1027;
    const ROOM_ROCKON_GIFT_TIME_ERROR = 1028;
    const ROOM_ROCKON_GIFT_SEND_NUM_ERROR = 1029;
    const ROOM_GAME_SEND_REPEAT_ERROR = 1057;
    const ROOM_NEED_ADD_VOICE_TASK = 1059;
    const ROOM_MICRO_USER_LOCK = 1100;
    const ROOM_PAIPAI_LOCK = 1101;
    const ROOM_MIC_FORBID = 1102; //房间禁麦状态

    //发红包
    const ROOM_RED_RECKET_MONEY_ERROR = 1030;
    const ROOM_RED_RECKET_LIST_ERROR = 1031;
    const ROOM_RED_RECKET_ROB_NUM_ERROR = 1032;
    const ROOM_RED_RECKET_ROB_ALREADY_ERROR = 1033;
    const ROOM_RED_RECKET_TIME_ERROR = 1034;
    const ROOM_RED_RECKET_OPEM_ERROR = 1035;
    const CMS_RED_RECKET_ERROR = 1036;
    const ROOM_RED_RECKET_ROB_AUTH_ERROR = 1037;
    const ROOM_RED_RECKET_ROB_AUTH_EXIST = 1038;
    const ROOM_RED_RECKET_INFO_ERROR = 1039;
    const ROOM_RED_RECKET_ROB_AUTH_NOT_NUM = 1040;
    const ROOM_RED_RECKET_LEVEL_MSG = 1041;
    //PK模式
    const ROOM_ACTION_TYPE_SELECT_ERROR = 1042;
    const ROOM_ACTION_TYPE_TIME_LIMIT_ERROR = 1043;
    const ROOM_PK_PUBLISH_ERROR = 1044;
    const ROOM_PK_PUBLISH_RES_EQ_ERROR = 1045;
    //Room vs Room 房间对战
    const ROOM_SPANPK_IN_MATCHING = 1046;
    const ROOM_SPANPK_IN_PROTECT = 1047;
    const ROOM_SPANPK_OUT_MATCHING_COUNT = 1048;
    const ROOM_SPANPK_MATCHING_TIME_OUT = 1049;
    const ROOM_SPANPK_NOT_IN_MATCHING_STATUS = 1050;
    const ROOM_SPANPK_CAN_NOT_PK_SELF = 1051;
    const ROOM_SPANPK_ROOM_LOCK = 1052;
    const ROOM_SPANPK_IN_RUNING = 1053;
    const ROOM_THREE_SPACE_USER_NUM_MSG = 1054;
    //房间礼物非自己
    const ROOM_TYPE_SELECT_ERROR = 1055;

    //Room 房间召集令
    const ROOM_HOT_CALL_SET_ERR = 1056;

    //赠送打老鼠礼物次数限制
    const ROOM_GAME_GIFT_SEND_NUM_ERROR = 1058;

    //已收藏房间
    const ROOM_COLLECTED = 1059;
    //车队房间
    const ROOM_CAR_START_NUM_ERROR = 1060;

    //房间技能礼物
    const ROOM_GIFT_HOST_ERROR = 1061;
    const ROOM_GIFT_IN_MIC = 1062;
    const ROOM_GIFT_IN_MIC_USER = 1063;
    const ROOM_GIFT__USER_NOT_VERIFY = 1065;
    const USER_NOT_VERIFY = 101065;
    const ROOM_ROLE_INVITE_AGAIN = 1066;
    const ROOM_ROLE_ADMIN = 1067;
    const ROOM_JOIN_ERROR = 1068;
    const ROOM_IS_FULL = 1069;
    const ROOM_GIFT_USER_CONSUME_FORBID = 1070;
    const ROOM_SPANPK_OUT_MATCHING_TIME = 1071;
    const ROOM_RECTIFY = 1072;
    const ROOM_IMAGE_VERIFY = 1073;
    const ROOM_JOIN_ERROR2 = 1074;

    //房间积分
    const ROOM_SCORE_ERROR = 1080;
    const ROOM_SCORE_LOG_ERROR = 1081;

    //房间投票
    const ROOM_VOTE_BUSINESS_ERROR = 1090;
    const ROOM_VOTE_USER_ROLE_ERROR = 1091;
    const ROOM_VOTE_NOT_EXISTS = 1092;
    const ROOM_VOTE_OPTION_FAIL = 1093;
    const ROOM_VOTE_IS_RUNING = 1094;
    const ROOM_VOTE_POLL_EMPTY = 1095;
    const ROOM_VOTE_USER_NOT_EXISTS = 1096;
    const ROOM_VOTE_USER_MYSELF = 1097;
    const ROOM_VOTE_TIME_END = 1098;

    // 业务 用户
    const USER_NOT_EXIST = 2001;
    const USER_IS_EXIST = 2002;
    const SMS_CODE_ERROR = 2003;
    const PASSWORD_FORMAT_ERROR = 2004;
    const PASSWORD_ERROR = 2005;
    const USER_IS_NOT_EXIST = 2006;
    const NICKNAME_EXIST = 2009;
    const PHONE_IS_EXIST = 2010;
    const PASSWORD_NOT_ACCORD = 2011;
    const PHONE_NOT_NOW_USER = 2012;
    const PHONE_STATUS_1 = 2013;
    const PHONE_STATUS_2 = 2014;
    const PHONE_STATUS_3 = 2015;
    const PHONE_STATUS_4 = 2016;
    const THIRD_CHECK_ERROR = 2017;
    const PHONE_FORMAT_ERR = 2018;
    const USER_NOT_OWNER = 2019;
    const USER_FORBID = 2020;
    const USER_VERIFY_BEYOND = 2021;
    const USER_VERIFY_NOT_FIND = 2022;
    const USER_VERIFY_FAILED = 2023;
    const USER_VERIFY_PASS_LIVING_NOT_THE_SAME    =2024;
    const USER_VERIFY_NO_ID_CARD_NUMBER	          =2025;
    const USER_VERIFY_ID_NUMBER_NAME_NOT_MATCH	  =2026;
    const USER_VERIFY_NO_FACE_FOUND               =2027;
    const USER_VERIFY_NO_ID_PHOTO                 =2028;
    const USER_VERIFY_PHOTO_FORMAT_ERROR          =2029;
    const USER_VERIFY_DATA_SOURCE_ERROR           =2030;
    const USER_VERIFY_FAIL_LIVING_FACE_ATTACK	  =2031;
    const USER_VERIFY_VIDEO_LACK_FRAMES           =2032;
    const USER_VERIFY_FAIL_EYES_CLOSE_DETECTION   =2033;
    const USER_VERIFY_BIZ_TOKEN_DENIED	          =2034;
    const USER_VERIFY_AUTHENTICATION_FAIL         =2035;
    const USER_VERIFY_MOBILE_PHONE_NOT_SUPPORT    =2036;
    const USER_VERIFY_SDK_TOO_OLD                 =2037;
    const USER_VERIFY_MOBILE_PHONE_NO_AUTHORITY	  =2038;
    const USER_VERIFY_USER_CANCELLATION	          =2039;
    const USER_VERIFY_USER_TIMEOUT                =2040;
    const USER_VERIFY_VERIFICATION_FAILURE        =2041;
    const USER_VERIFY_UNDETECTED_FACE             =2042;
    const USER_VERIFY_ACTION_ERROR                =2043;
    const USER_VERIFY_EXIST                       =2044;
    const USER_VERIFY_NOT_ACTION                  =2045;

    const USER_UID_NOT_LIANG                 =2046;
    const USER_UID_IS_EXIST                  =2047;

    const USER_NOT_CERTIFICATION             =2048;
    const USER_PAY_NOT_CERTIFICATION = 10248;//用户支付时，如果未认证，提示用户去认证
    const USER_NOT_ADULT                     =2049;

    const USER_VERIFY_IDCARD_EXCEEDING       =2050;
    const USER_ACCOUNT_IS_ABNORMAL           =2051;
    const USER_ACCOUNT_IS_CANCEL = 2053;
    const USER_ACCOUNT_MOBILE_ERROR = 2054;
    const USER_ACCOUNT_MOBILE_NOT_BIND = 2055;
    const JG_TOKEN_CHECK_ERROR = 2057;
    //声撩移植
    const USER_INVITE_CODE_NO_EXIST = 2056;// 用户邀请码
    const USER_INVITE_CODE_EXIST_EMOJI = 202056;

    const USER_FORBIID_PRIVILEGE = 2058;
    const PASSWORD_FORMAT_ERR = 2059;
    const USER_LOGIN_FAILED_TOO_MANY = 2060;

    const USER_MICRO_IS_BLOCK = 2061;
    //永久封禁设备
    const DEVICE_FORBID = 2062;

    //faceid空
    const USER_VERIFY_FACEID_EMPTY = 2064;

    //sign空
    const USER_VERIFY_SIGN_EMPTY = 2065;
    // sign已过期
    const USER_VERIFY_SIGN_EXP = 2066;

    const USER_VERIFY_TX_FACE_1 = 66660004;
    const USER_VERIFY_TX_FACE_2 = 66660010;
    const USER_VERIFY_TX_FACE_3 = -5008;
    const USER_VERIFY_TX_FACE_4 = -5018;
    const USER_VERIFY_TX_FACE_5 = -5023;
    const USER_VERIFY_TX_FACE_6 = 999999;
    const USER_VERIFY_TX_FACE_7 = 66660000;
    const USER_VERIFY_TX_FACE_8 = 66660002;
    const USER_VERIFY_TX_FACE_9 = 66660003;
    const USER_VERIFY_TX_FACE_10 = 66660005;
    const USER_VERIFY_TX_FACE_11 = 66660011;
    const USER_VERIFY_TX_FACE_12 = 66660015;
    const USER_VERIFY_TX_FACE_13 = 66660016;
    const USER_VERIFY_TX_FACE_14 = 66660017;
    const USER_VERIFY_TX_FACE_15 = 66660018;
    const USER_VERIFY_TX_FACE_16 = 66660023;
    const USER_VERIFY_TX_FACE_17 = 66660035;
    const USER_VERIFY_TX_FACE_18 = 66660037;
    const USER_VERIFY_TX_FACE_19 = 66660041;
    const USER_VERIFY_TX_FACE_20 = 66660044;
    const USER_VERIFY_TX_FACE_21 = 66660046;
    const USER_VERIFY_TX_FACE_22 = 66662001;
    const USER_VERIFY_TX_FACE_23 = 66665001;
    const USER_VERIFY_TX_FACE_24 = 400101;
    const USER_VERIFY_TX_FACE_25 = 400103;
    const USER_VERIFY_TX_FACE_26 = 400106;
    const USER_VERIFY_TX_FACE_27 = 400506;
    const USER_VERIFY_TX_FACE_28 = 400600;
    const USER_VERIFY_TX_FACE_29 = 400601;

    // 业务 系统
    const SYSTEM_NOVER = 3001; //版本不存在
    const SYSTEM_TIP = 3002; //通用不处理提示 私信不可用

    //资金
    const DIAMOND_NOT_ENOUGH = 4001;
    const CHARM_NOT_ENOUGH = 4002;
    const FINANCE_ORDER_COMPLETE = 4003;
    const FINANCE_MP_RMB_NOT_ENOUGH = 4004;
    const FINANCE_WITHDRAW_TIME_CLOSE = 4005;
    const FINANCE_WITHDRAW_COUNT_CLOSE = 4006;
    const FINANCE_WITHDRAW_ORDER_NOT_EXIST = 4007;
    const FINANCE_WITHDRAW_ORDER_OPTION_FAIL = 4008;
    const PEARL_NOT_ENOUGH = 4009;
    const FINANCE_WITHDRAW_ABNORMAL = 4010;
    const FINANCE_RECHARGE_LIMIT_NOADULT = 4011;
    const FINANCE_RECHARGE_LIMIT_NOAUTH = 4012;
    const FINANCE_RECHARGE_CONTINUE_NOT_ALLOW = 4013;
    const KK_NOT_ENOUGH = 4014;
    const FINANCE_ROOM_SUPPORT_SET_EXIST = 4015;
    const FINANCE_ROOM_ADVANCE_NOT_ALLOW = 4016;
    const FINANCE_UNION_USER_NOT_BIND = 4017;
    const FINANCE_UNION_USER_NOT_EXIST = 4018;
    const FINANCE_ROOM_ADVANCE_NOT_STANDARD = 4019;
    const FINANCE_RECHARGE_DAY_LIMIT = 4020;
    const FINANCE_RECHARGE_LIMIT_SIXTEEN = 4021;
    const FINANCE_REWARD_LIMIT_SIXTEEN = 4022;
    const FINANCE_RECHARGE_LIMIT = 4023;
    const FINANCE_RECHARGE_INDIVIDUAL_LIMIT = 4024;
    const FINANCE_EXCHANGE_AND_WITHDRAW_BLACKLIST = 4025; //add by zxiaofee
    const FINANCE_RECHARGE_TOPLIMIT = 4026; //add by zxiaofee
    const FINANCE_CONSUME_TOPLIMIT = 4023; //add by zxiaofee
    const FINANCE_RECHARGE_ALIPAY_DAY_LIMIT = 4024; //add by zxiaofee
    const FINANCE_RECHARGE_PAY_MAX = 4027;
    const FINANCE_RECHARGE_TYPE_ERROR = 4028;
    const FINANCE_JB_EXCHANGE_1 = 4029;

    //金豆
    const JD_NOT_ENOUGH = 4030;

    //代理金豆
    const AGENTJ_NOT_ENOUGH = 4031;

    const FINANCE_RECHARGE_BLACK = 4032;
    const WEALTH_NOT_ENOUGH = 4033;

    //商城
    const NOW_GOODS_DISABLED = 5001;
    //商城装扮碎片兑换
    const GOODS_PIECE_NOT_ENOUGH = 5002;

    const MALL_GOODS_LOWER = 5003;
    const MALL_GOODS_NOT_UPGRADE = 5004;
    const MALL_GOODS_UPGRADE_CONFIG_ERR = 5005;

    //动态
    const TRENDS_NOT_FOUND = 6001;

    //荣耀令不足
    const GOODS_GLORY_NOT_ENOUGH = 5008;
    //CP
    const CP_SELF_EXIST = 7001;
    const CP_EACH_EXIST = 7002;
    const CP_NO_REQUEST = 7003;
    const CP_NOT_EXIST  = 7004;
    const CP_REQUEST_BEYOND = 7005;
    const CP_STATUS_HIDE = 7006;
    const CP_GIFT_GRADE_NOT_SATISFIED = 7007;

    //好友关系
    const FRIENDS_NO_FRIENDS = 8001;
    const FRIENDS_NO_SEND_MSG = 8002;
    const FRIENDS_NO_INTIMATE_MSG = 8003;

    // 银行卡
    const BANK_EXIST=80001;
    const BANK_NO_EXIST=80002;
    const BANK_CREATE_FAIL=80003;
    const BANK_UPDATE_FAIL=80004;
    const BANK_GET_FAIL=80005;
    const BANK_REMOVE_FAIL=80006;
    const BANK_MAX_COUNT=80007;
    const BANK_EXIST_ORDER=80008;

    //支付宝
    const ALIPAY_EXIST=81001;
    const ALIPAY_NO_EXIST=81002;

    // 砸蛋
    const THROWING_HAMMER_NOT_ENOUGH = 90001;
    const THROWING_GIFT_BAG_NOT_ENOUGH = 90002;
    const THROWING_HAMMER_OPEN_STATE_N = 90003;
    const THROWING_HAMMER_LUCK_NOT_ENOUGH = 90004;
    const THROWING_HAMMER_NOT_START = 90005;

    //抽奖
    const LUCK_DRAW_PROP_NOT_ENOUGH = 90006;
    const LUCK_DRAW_EXP_NOT_ENOUGH = 90007;
    const LUCK_DRAW_NOT_STARTED = 90008;

    //公用
    const ACTIVITY_END = 90009;


    /**
     * 特定通用逻辑错误码  100001-100012
     * */
    const ERR_NORMAL = 100001;
    const ERR_SYS_FAIL = 100002;
    const ERR_DB_FAIL = 100003;
    const ERR_USER_LOGIN_STATUS = 100005;
    const ERR_PARAMS_CHECK_FAIL = 100006;
    const ERR_DATA_EXIST = 100007;
    const ERR_DATA_NOT_EXIST = 100008;
    const ERR_DATA_CREATE_FAIL = 100009;
    const ERR_DATA_UPDATE_FAIL = 100010;
    const ERR_DATA_REMOVE_FAIL = 100011;
    const ERR_FAIL = 100012;
    const ERR_NETWORK_BUSY = 100013;
    const ERR_NETWORK_ERROR = 100014;
    const ACCESS_TOKEN_IS_INVALID = 100015;
    const USER_TOKEN_IS_INVALID = 100016;
    const USER_TOKEN_IS_ILLEGAL = 100017;
    const SAY_HELLO_FAIL = 10018;
    const NOT_FREQ = 10019;
    // END

    // 用户勋章佩戴类型已满
    const MEDAL_USER_TYPE_FULL = 110001;


    // 邂逅
    const MEET_EACH_NOT_JOIN = 120001;
    const MEET_NOT_MATCHING = 120002;
    const MEET_GET_MATCHED_USER_FAIL = 12003;

    // 群组
    const GROUP_CHAT_USER_ALREADY_INVITE = 130001;


    // 道具
    const PROP_IN_USE = 140001;
    const PROP_NOT_ENOUGH = 140002;

    //内容审核
    const CONTENT_CHECK_ROBOT_ERR_MSG = 150001;

    //代充 16
    const FINANCE_PROXY_BALANCE_ERR = 160001;
    const FINANCE_PROXY_MAX_ERR = 160002;

    //匿名聊天室
    const ROOM_ANONNYM_LEAVE = 17001;
    const ROOM_ANONNYM_KICKING = 17002;

    // 挖矿
    const MINE_PICK_NOT_ENOUGH = 170001;
    const MINE_GIFT_FRAGMENT_NOT_ENOUGH = 170002;
    const MINE_CRYSTAL_FRAGMENT_ENOUGH = 170003;
    const MINE_CLOSD = 170004;
    const MINE_SMELT_NOT_ENOUGH = 170005;

    //公会相关
    const UNION_CERTIFICATION_ERROR = 180001;
    const UNION_CREATE_TIMES_ERROR = 180002;
    const UNION_USER_EXIST = 180003;
    const UNION_UPDATE_NAME_ERROR = 180004;
    const UNION_CONTRIBUTION_NOT_ENOUGH = 180005;
    const UNION_ACTIVE_RANK_NOT_ENOUGH = 180006;
    const UNION_FINANCE_RANK_NOT_ENOUGH = 180007;
    const UNION_BAG_RECEIVED = 180008;
    const UNION_DISSOLVE_ERROR = 180009;
    const UNION_SHOP_SALE_OUT = 180010;

    //家族
    const FAMILY_CERTIFICATION_ERROR = 190001;
    const FAMILY_USER_EXIST = 190002;
    const FAMILY_CREATE_TIMES_ERROR = 190003;



    //特殊日期限制
    const NATIONAL_FORBID_UPDATE = 6666666;

    // 文件上传相关
    const FILE_UPLOAD_CONFIG_ERR = 200001;

    //
    const USER_HOBBY_ERR = 300001;
    const PUBLIC_ERROR = 400001;//公共错误

    const ACTIVITY_LUCKY_BAG_ERROR = 6002;//开福袋活动-特定错误
    //折纸、文字匹配
    const RANDOM_MATCH_USER_FAIL = 300050;//文字匹配失败
    const ORIGAMI_TYPE_ID_ERROR = 300051;//折纸类型错误
    const ORIGAMI_CONTENT_IS_EMPTY = 300052;//折纸内容为空
    const ORIGAMI_AUDIT_FAIL = 300053;//折纸审核失败


    //蜜屋
    const SECRET_ROOM_MINIMUM_PRICE_ERROR = 300070;//最小价格错误
    const SECRET_ROOM_TO_MUSH_TO_BE_ACCEPTED = 300071;//待同意的邀请不能超过10个
    const SECRET_ROOM_INITIATOR_NOT_ONLINE = 300072;//发起人不在线
    const SECRET_ROOM_EXPIRED = 300073;//邀请过期失效
    const SECRET_ROOM_STATUS_HAS_CHANGED = 300074;//状态已经改变
    const SECRET_ROOM_CAN_NOT_SEND_TIMING_GIFT = 300075;//不能发送计时礼物
    const SECRET_ROOM_CAN_NOT_SEND_GIFT_TO_SELF = 300076;//不能赠送礼物给自己
    const SECRET_ROOM_CAN_NOT_PLAY = 300077;//需要升级到最新版本才能进入该类型房间哦~
    const SECRET_ROOM_CAN_NOT_BE_INVITED = 300078;//对方还不是最新版本哦~快去提醒TA更新一起玩吧~
    const SECRET_ROOM_CANCEL_BY_INITIATOR = 300079;//对方已取消邀请~



    //银联云闪付退款
    const UNION_PAY_ORDER_STATUS_CHANGED = 300085;//订单状态已改变
    const UNION_PAY_REQUEST_ERROR = 300086;//发起请求过程中发生错误
    const UNION_PAY_REFUNDED_FAIL = 300087;//退款失败

    //限时礼物过期
    const LIMITED_TIME_GIFT_NOT_ALLOWED_SEND = 300080;

    const SECRET_ROOM_CAN_NOT_SEND_BOX_TO_SELF = 300081;//不能赠送宝箱给自己

    //等级礼物
    const LEVEL_GRADE_GIFT_NOT_ALLOWED_SEND = 400000;
    const GIFT_IS_NOT_DOUBLE_HIT_GIFT = 400001;
    const GIFT_CONFIG_IS_WRONG = 400002;
    const GIFT_CONFIG_LEVEL_IS_NOT_EXIST = 400003;
    const GIFT_SENT_NUM_NOT_SATISFIABLE = 400004;

    //许愿池新用户首充弹窗
    const ROOM_POP_WISH_ERROR =  400005;
    //星辰变特殊错误
    const UNIVERSE_CHANGE_ERROR = 400006;

    //擂主错误
    const DEFENDER_POOL_CHANGE = 400007;

    static $Msg = [
        self::ERROR => '失败',
        self::SUCCESS => '成功',
        self::PARAM_ERROR => '参数错误',
        self::AUTH_ERROR => '无权限操作',
        self::NOT_ALLOWED => '不允许操作',
        self::LOGIN_OUT => '登录态已过期',
        self::TOKEN_ERROR => 'token错误',
        self::SIGN_ERROR => '签名错误',
        self::NOT_ALLOW_SEND_CODE => '获取验证码太频繁，60秒后再试',
        self::WAIT_OPEN => '(^-^) 即将开放，敬请期待！',
        self::NEED_CAPTCHA_CODE => '请填写图形验证码',
        self::CHECK_CAPTCHA_CODE_ERROR => '图形验证码错误',
        self::NEW_VERSION_MSG => '请升级新版本',
        self::NEED_SHUMEI_CODE => '请填写划块验证码',
        self::SAME_TIME_NOT_REPEAT => '同一时间请勿重复请求',
        self::VERSION_UPDATE_NOTICE => '请到应用商店或者公众号更新版本～',
        self::JUVENILES_NOT_REWARD => '未成年用户暂时不能进行钻石充值或消费哦~',
        self::JUVENILES_NOT_REWARD_NEW_MSG => '未成年用户暂时不能进行钻石充值或消费哦~',
        self::NOT_REAL_NAME_RECHARGE_LIMIT => '已达充值限额，请前往实名认证',
        self::JUVENILES_NOT_RED_PACKET => '未成年用户不允许领取红包',
        self::NOT_AUDIT_NOT_RED_PACKET => '未实名用户不允许领取红包',
        self::JUVENILES_NOT_VERIFY => '未成年用户暂时不能进行实名认证哦~',
        self::NEED_CONTENT_AND_IMAGE => '图片或文字不能为空！',

        //业务 房间
        self::ROOM_NO_EXIST => '房间不存在',
        self::ROOM_USER_IS_EXIST => '用户已在房间内',
        self::ROOM_USER_NOT_EXIST => '用户不在房间内',
        self::ROOM_MICRO_NOT_EXIST => "麦不存在",
        self::ROOM_MICRO_IS_FULL => "麦已满",
        self::ROOM_MICRO_NOT_NULL => "麦上已有用户",
        self::ROOM_MICRO_IS_NULL => "麦上无用户",
        self::ROOM_MICRO_USER_IS_EXIST => "用户已在麦上",
        self::ROOM_MICRO_USER_NOT_EXIST => "用户未在麦上",
        self::ROOM_WAITBIT_IS_EXIST => "用户已在排麦中",
        self::ROOM_WAITBIT_NOT_EXIST => "用户不在排麦中",
        self::ROOM_MICRO_IS_LOCK => "麦锁定",
        self::ROOM_USER_SHOT_OFF => "踢出房间暂时不可进入",
        self::ROOM_IS_CERTIFY => "已认证房间不允许设置房间类型",
        self::ROOM_RADIO_NOT_SET => "电台房不允许设置房间类型",
        self::ROOM_NOT_OPEN => "房间未开启",
        self::ROOM_IS_OPEN => "房间已经开启",
        self::ROOM_ROLE_ROOM_MAX => "TA的管理身份已达上限",
        self::ROOM_PASSWORD_NEED => "房间需要密码",
        self::ROOM_PASSWORD_ERR => "房间密码错误",
        self::ROOM_TYPE_NOT_ALLOWED => "非认证用户只允许选择 听歌、闲聊、CP",
        self::ROOM_TYPE_NOT_EXIST => "分类不存在",
        self::ROOM_MICRO_IS_CP => "CP专属座位",
        self::ROOM_MICRO_GUARD_MATCH => '麦守护类型不匹配',
        self::ROOM_MICRO_GUARD_NOT_EXIST => '未开通守护麦服务',
        self::ROOM_HOSTMICRO_IS_NULL => '主持麦无用户',
        self::ROOM_NOT_CERTIFIED => '房间未认证',
        self::ROOM_NO_ROCKON_GIFT_TIME => '无礼物计时时间',
        self::ROOM_ROCKON_GIFT_TIME_ERROR => '礼物倒计时不达标',
        self::ROOM_ROCKON_GIFT_SEND_NUM_ERROR => '该礼物仅限赠送一人',
        self::ROOM_GAME_SEND_REPEAT_ERROR => '小游戏加载中，请勿重复赠送',
        self::ROOM_GAME_GIFT_SEND_NUM_ERROR => '单次最多只能赠送一个',
        self::ROOM_COLLECTED =>'该房间已经收藏过了哦',
        self::ROOM_CAR_START_NUM_ERROR => '还没有人加入车队哦~',
        self::ROOM_GIFT_HOST_ERROR =>'该礼物不能送给主持哦~',
        self::ROOM_GIFT_IN_MIC =>'该礼物只能在麦上时才能赠送哦~',
        self::ROOM_GIFT_IN_MIC_USER =>'该礼物只能赠送给麦上用户哦~',
        self::ROOM_GIFT__USER_NOT_VERIFY => '为了更好地保障您的使用体验，请先进行实名认证哦~',
        self::USER_NOT_VERIFY => '为了更好地保障您的使用体验，请先进行实名认证哦~',
        self::ROOM_ROLE_INVITE_AGAIN => '不能重复邀请哦~',
        self::ROOM_ROLE_ADMIN => '已是该房间管理员~',
        self::ROOM_JOIN_ERROR => '加入房间失败~',
        self::ROOM_GIFT_USER_CONSUME_FORBID => '暂时无法操作，请联系客服~',
        self::ROOM_SPANPK_OUT_MATCHING_TIME => '%s仅能参与%s次pk',
        self::ROOM_RECTIFY => '房间整顿中，请联系官方运营',
        self::ROOM_IMAGE_VERIFY => '房间封面将在审核后生效',
        self::ROOM_JOIN_ERROR2 => '加入房间失败!',
        self::ROOM_MICRO_USER_LOCK => '您已被锁麦，不可操作',
        self::ROOM_PAIPAI_LOCK => '已产生心动值不可下麦',

        self::ROOM_SCORE_ERROR => '房间积分设置失败',
        self::ROOM_SCORE_LOG_ERROR => '房间积分日志设置失败',
        self::ROOM_VOTE_BUSINESS_ERROR => 'CBD房间才可发起投票',
        self::ROOM_VOTE_USER_ROLE_ERROR => '您没有发起投票的权限',
        self::ROOM_VOTE_NOT_EXISTS => '该房间没有发起投票',
        self::ROOM_VOTE_OPTION_FAIL => '房间投票操作失败',
        self::ROOM_VOTE_IS_RUNING => '投票正在进行中',
        self::ROOM_VOTE_POLL_EMPTY => '人气票不足，本轮无法投票',
        self::ROOM_VOTE_USER_NOT_EXISTS => '该用户不是投票对象',
        self::ROOM_VOTE_USER_MYSELF => '不能为自己投票',
        self::ROOM_VOTE_TIME_END => '当前投票已结束',

        self::ROOM_POP_WISH_ERROR => '必须是新用户完成首充才可参加活动',
        self::ROOM_MIC_FORBID => '房间处于禁麦状态,无法进行此操作',


        //红包
        self::ROOM_RED_RECKET_MONEY_ERROR => '红包金额错误',
        self::ROOM_RED_RECKET_LIST_ERROR => '房间暂无红包',
        self::ROOM_RED_RECKET_ROB_NUM_ERROR => '该红包已被抢完',
        self::ROOM_RED_RECKET_ROB_ALREADY_ERROR => '您已抢过该红包',
        self::ROOM_RED_RECKET_TIME_ERROR => '红包暂未开启',
        self::ROOM_RED_RECKET_OPEM_ERROR => '红包功能未开启',
        self::CMS_RED_RECKET_ERROR => '已参与过官方天降红包抢夺战',
        self::ROOM_RED_RECKET_ROB_AUTH_ERROR => '未完成参与条件',
        self::ROOM_RED_RECKET_ROB_AUTH_EXIST => '已完成参与条件',
        self::ROOM_RED_RECKET_INFO_ERROR => '红包信息错误',
        self::ROOM_RED_RECKET_ROB_AUTH_NOT_NUM => '参与额度已满～',
        self::ROOM_RED_RECKET_LEVEL_MSG => '接下来要穿秋裤渐凉的日子里，用新版红包点燃你的热情，臭弟弟臭妹妹赶紧升级吧！给你双击么么哒！',
        self::ROOM_ACTION_TYPE_SELECT_ERROR => '无权限选择本模式，详情联系客服',
        self::ROOM_ACTION_TYPE_TIME_LIMIT_ERROR => '半小时之后重新进行模式选择～',
        self::ROOM_PK_PUBLISH_ERROR => '结果已公布～',
        self::ROOM_PK_PUBLISH_RES_EQ_ERROR => '两队比分相同，无法公布',

        //room vs room跨房间pk
        self::ROOM_SPANPK_IN_MATCHING =>'房间已经在匹配中',
        self::ROOM_SPANPK_IN_PROTECT => "房间在保护期内",
        self::ROOM_SPANPK_OUT_MATCHING_COUNT => '超过每日发起挑战次数',
        self::ROOM_SPANPK_MATCHING_TIME_OUT => '匹配超时',
        self::ROOM_SPANPK_NOT_IN_MATCHING_STATUS => '不在匹配阶段',
        self::ROOM_SPANPK_CAN_NOT_PK_SELF =>'请选择其他房间',
        self::ROOM_SPANPK_ROOM_LOCK=>'锁房期间无法发起PK',
        self::ROOM_SPANPK_IN_RUNING=>'PK期间无法发起PK',

        self::ROOM_THREE_SPACE_USER_NUM_MSG=>'超过当前房间最大人数，请稍后～',
        self::ROOM_TYPE_SELECT_ERROR => '暂不支持该房间类型切换，敬请期待～',
        self::ROOM_HOT_CALL_SET_ERR => '房间召集令设置失败',

        // 业务 用户
        self::USER_NOT_EXIST => '用户不存在',
        self::USER_IS_EXIST => '用户已存在',
        self::SMS_CODE_ERROR => '验证码错误',
        self::PASSWORD_FORMAT_ERROR => '密码格式错误',
        self::PASSWORD_ERROR => '密码错误',
        self::USER_IS_NOT_EXIST => '手机号不存在',
        self::NICKNAME_EXIST => '昵称已存在',
        self::PHONE_IS_EXIST => '手机号被绑定',
        self::PASSWORD_NOT_ACCORD => '密码长度必须由6-16位数字字母组成，不能包含特殊字符',
        self::PHONE_NOT_NOW_USER => '手机号非当前登录账户',
        self::PHONE_STATUS_1 => '未注册',
        self::PHONE_STATUS_2 => '已注册&当前登录账户',
        self::PHONE_STATUS_3 => '已注册&非当前登录账户',
        self::PHONE_STATUS_4 => '已注册&未登录',
        self::THIRD_CHECK_ERROR => '信息匹配错误',
        self::PHONE_FORMAT_ERR => '手机号格式错误',
        self::USER_NOT_OWNER => '非房主不允许设置房间类型',
        self::USER_FORBID => '账号被封号',
        self::DEVICE_FORBID => '设备禁用',
        self::USER_VERIFY_BEYOND => '超出验证次数',
        self::USER_VERIFY_NOT_FIND => '验证token未找到',
        self::USER_VERIFY_FAILED => '验证失败',
        self::USER_VERIFY_PASS_LIVING_NOT_THE_SAME   => '通过了活体检测，但是经过验证，待比对照片与权威数据照片，或参考照片中的至少一张，不是同一个人',
        self::USER_VERIFY_NO_ID_CARD_NUMBER	         => '权威数据错误，可能原因：权威数据无此身份证号、权威数据照片格式错误、权威数据照片中找不到人脸等可能',
        self::USER_VERIFY_ID_NUMBER_NAME_NOT_MATCH	 => '身份证号和姓名不匹配',
        self::USER_VERIFY_NO_FACE_FOUND              => '权威数据错误，可能原因：权威数据无此身份证号、权威数据照片格式错误、权威数据照片中找不到人脸等可能',
        self::USER_VERIFY_NO_ID_PHOTO                => '权威数据错误，可能原因：权威数据无此身份证号、权威数据照片格式错误、权威数据照片中找不到人脸等可能',
        self::USER_VERIFY_PHOTO_FORMAT_ERROR         => '权威数据错误，可能原因：权威数据无此身份证号、权威数据照片格式错误、权威数据照片中找不到人脸等可能',
        self::USER_VERIFY_DATA_SOURCE_ERROR          => '权威数据出现错误',
        self::USER_VERIFY_FAIL_LIVING_FACE_ATTACK	 => '未经过活体判断，可能的原因：是假脸攻击',
        self::USER_VERIFY_VIDEO_LACK_FRAMES          => '获取到的活体数据故障，请换一台手机重试',
        self::USER_VERIFY_FAIL_EYES_CLOSE_DETECTION  => '未通过闭眼检测，活体失败	',
        self::USER_VERIFY_BIZ_TOKEN_DENIED	         => '传入的 biz_token 不符合要求',
        self::USER_VERIFY_AUTHENTICATION_FAIL        => '鉴权失败',
        self::USER_VERIFY_MOBILE_PHONE_NOT_SUPPORT   => '手机在不支持列表里',
        self::USER_VERIFY_SDK_TOO_OLD                => 'SDK版本过旧，已经不被支持',
        self::USER_VERIFY_MOBILE_PHONE_NO_AUTHORITY	 => '没有权限（运动传感器、存储、相机）',
        self::USER_VERIFY_USER_CANCELLATION	         => '用户活体失败，原因可能如下：用户取消了、验证过程超时等原因；',
        self::USER_VERIFY_USER_TIMEOUT               => '用户活体失败，原因可能如下：用户取消了、验证过程超时等原因；',
        self::USER_VERIFY_VERIFICATION_FAILURE       => '用户活体失败，原因可能如下：用户取消了、验证过程超时等原因；',
        self::USER_VERIFY_UNDETECTED_FACE            => '用户活体失败，原因可能如下：用户取消了、验证过程超时等原因；',
        self::USER_VERIFY_ACTION_ERROR               => '用户活体失败，原因可能如下：用户取消了、验证过程超时等原因；',
        self::USER_VERIFY_EXIST => '已经通过认证',
        self::USER_VERIFY_NOT_ACTION => '未验证',

        self::USER_UID_NOT_LIANG => '非靓号',
        self::USER_UID_IS_EXIST => '号码已存在',
	//self::USER_NOT_CERTIFICATION  => '未认证用户',
	self::USER_NOT_CERTIFICATION  => '您还未完成实名认证',

        self::USER_NOT_ADULT  => '未成年用户',

        self::USER_VERIFY_IDCARD_EXCEEDING => '证件使用次数超限',
        self::USER_ACCOUNT_IS_ABNORMAL => '该用户账号异常',
        self::USER_ACCOUNT_IS_CANCEL => '该用户已申请账号注销',
        self::USER_ACCOUNT_MOBILE_ERROR => '您填写的绑定手机与当前登录账号信息不符',
        self::USER_ACCOUNT_MOBILE_NOT_BIND => '手机号未绑定',
        self::USER_INVITE_CODE_NO_EXIST => '邀请码不存在',
        self::USER_INVITE_CODE_EXIST_EMOJI => '邀请码中含有特殊字符',
        self::JG_TOKEN_CHECK_ERROR => '极光loginToken校验失败',
        self::USER_FORBIID_PRIVILEGE => '该用户不可使用特权礼物',
        self::PASSWORD_FORMAT_ERR => '密码最少8位并包含大小写字母、数字或特殊符号中的两种',
        self::USER_LOGIN_FAILED_TOO_MANY => '登录失败次数过多，请10分钟后再试',
        self::USER_MICRO_IS_BLOCK => '系统禁麦中，暂时无法操作',

        //资金
        self::DIAMOND_NOT_ENOUGH => '钻石不足支付',
        self::CHARM_NOT_ENOUGH => '魅力不足',
        self::FINANCE_ORDER_COMPLETE => "订单已经完成",
        self::FINANCE_MP_RMB_NOT_ENOUGH => "微信公众号余额不足",
        self::KK_NOT_ENOUGH => '金币不足',
        self::JD_NOT_ENOUGH => '金豆不足',
        self::AGENTJ_NOT_ENOUGH => '代理金豆不足',
        self::FINANCE_WITHDRAW_TIME_CLOSE => "提现超时不在规定时间内",
        self::FINANCE_WITHDRAW_COUNT_CLOSE => '提现次数超过限制',

        self::FINANCE_WITHDRAW_ORDER_NOT_EXIST => '订单不存在',
        self::FINANCE_WITHDRAW_ORDER_OPTION_FAIL => '订单操作失败',

        self::PEARL_NOT_ENOUGH => '金豆不足',
        self::FINANCE_WITHDRAW_ABNORMAL => '账户异常，请先完成实名认证',

        self::FINANCE_RECHARGE_LIMIT_NOADULT => '未成年用户暂时不能进行钻石充值或消费哦~',
        self::FINANCE_RECHARGE_LIMIT_NOAUTH => '为了更好地保障您的使用体验，请先进行实名认证哦~',
        self::FINANCE_RECHARGE_CONTINUE_NOT_ALLOW => '发生错误，充值失败，请联系客服',

        self::FINANCE_ROOM_SUPPORT_SET_EXIST => '当前扶持类型下绑有房间',
        self::FINANCE_ROOM_ADVANCE_NOT_ALLOW => '非预支日，不可预支钻石',
        self::FINANCE_UNION_USER_NOT_BIND => '公会暂无关联用户',
        self::FINANCE_UNION_USER_NOT_EXIST => '只可绑定本公会成员',
        self::FINANCE_ROOM_ADVANCE_NOT_STANDARD => '可预支金额未达到最低要求',
        self::FINANCE_RECHARGE_DAY_LIMIT =>'今日充值金额已达上限',
        self::FINANCE_RECHARGE_LIMIT_SIXTEEN => '未满16周岁不允许充值',
        self::FINANCE_REWARD_LIMIT_SIXTEEN => '未满16周岁不允许打赏',
        self::FINANCE_RECHARGE_LIMIT => '未实名或者未成年人不允许充值',
        self::FINANCE_RECHARGE_INDIVIDUAL_LIMIT => '本月有普通提现记录，当月不可提现打款',
        self::FINANCE_EXCHANGE_AND_WITHDRAW_BLACKLIST => '暂时不允许此操作，有疑问可前往公众号咨询客服',
        self::FINANCE_RECHARGE_TOPLIMIT => '今日充值已达上限',
        self::FINANCE_CONSUME_TOPLIMIT => '今日消费已达上限',
        self::FINANCE_RECHARGE_ALIPAY_DAY_LIMIT => '今日支付宝充值已达上限，请使用微信进行充值',
        self::FINANCE_RECHARGE_PAY_MAX => '单笔最多可充值10万元~',
        self::FINANCE_RECHARGE_TYPE_ERROR => '支付配置定义错误',
        self::FINANCE_JB_EXCHANGE_1 => '对公结算公会会长不可金币兑换',
        self::FINANCE_RECHARGE_BLACK => '当前账号经系统检测存在安全风险,暂无法进行充值！',
        self::WEALTH_NOT_ENOUGH => '财富值不足',


        // 业务 系统
        self::SYSTEM_NOVER => '版本不存在',

        //商城
        self::NOW_GOODS_DISABLED => '当前装扮不可用',

        self::GOODS_PIECE_NOT_ENOUGH=>'碎片不足，可回收背包内的装扮获得更多碎片',

        self::MALL_GOODS_LOWER=>'商品已下架不可使用~',

        self::MALL_GOODS_NOT_UPGRADE=>'装扮已取消升级~',
        self::MALL_GOODS_UPGRADE_CONFIG_ERR=>'未到达装扮等级~',

        self::GOODS_GLORY_NOT_ENOUGH => '荣耀令数量不足哦~',
        //动态
        self::TRENDS_NOT_FOUND => '动态不存在',

        //CP
        self::CP_SELF_EXIST => '您当前已有CP，若要结交新的CP，需先解除原有CP。',
        self::CP_EACH_EXIST => '对方已有CP',
        self::CP_NO_REQUEST => 'CP请求不存在',
        self::CP_NOT_EXIST => 'CP不存在',
        self::CP_REQUEST_BEYOND => '请求超出次数',
        self::CP_STATUS_HIDE => 'CP已隐藏',
        self::CP_GIFT_GRADE_NOT_SATISFIED => '送礼对象未满足CP等级要求~',

        //好友关系
        self::FRIENDS_NO_FRIENDS => '非好友关系',
        self::FRIENDS_NO_SEND_MSG => '需对方关注您后可发消息',
        self::FRIENDS_NO_INTIMATE_MSG => '亲密值未满足1000',


        //银行卡
        self::BANK_EXIST=>'银行卡已存在',
        self::BANK_NO_EXIST=>'银行卡不存在',
        self::BANK_CREATE_FAIL=>'银行卡创建失败',
        self::BANK_UPDATE_FAIL=>'银行卡更新失败',
        self::BANK_GET_FAIL=>'银行卡获取失败',
        self::BANK_REMOVE_FAIL=>'银行卡删除失败',
        self::BANK_MAX_COUNT=>'银行卡已达上限',
        self::BANK_EXIST_ORDER=>'该银行卡有未结算订单',

        //支付宝
        self::ALIPAY_EXIST=>'支付宝已存在',
        self::ALIPAY_NO_EXIST=>'支付宝不存在',

        // 砸蛋
        self::THROWING_HAMMER_NOT_ENOUGH => '锤子不足',
        self::THROWING_GIFT_BAG_NOT_ENOUGH => '礼物不足',
        self::THROWING_HAMMER_OPEN_STATE_N => '砸蛋活动已结束',
        self::THROWING_HAMMER_LUCK_NOT_ENOUGH => '幸运值不足',
        self::THROWING_HAMMER_NOT_START => '活动未开始',

        //抽奖
        self::LUCK_DRAW_PROP_NOT_ENOUGH => '%s不足',
        self::LUCK_DRAW_EXP_NOT_ENOUGH => '%s不足',
        self::LUCK_DRAW_NOT_STARTED => '%s未开始',

        //公用
        self::ACTIVITY_END => '活动已结束',

        /**
         * 特定通用逻辑错误码描述  100001-10012
         *
         * START
         * */
        self::ERR_NORMAL => '请求错误',
        self::ERR_SYS_FAIL => '系统异常',
        self::ERR_DB_FAIL => 'DB异常',
        self::ERR_USER_LOGIN_STATUS => '您还未登录,请登录重试',
        self::ERR_PARAMS_CHECK_FAIL => '参数缺失请检查后重试',
        self::ERR_DATA_EXIST => '数据已存在',
//        self::ERR_DATA_NOT_EXIST => '该道具不支持直接使用',
        self::ERR_DATA_NOT_EXIST => '数据不存在',
        self::ERR_DATA_CREATE_FAIL => '数据创建失败',
        self::ERR_DATA_UPDATE_FAIL => '数据更新失败',
        self::ERR_DATA_REMOVE_FAIL => '数据删除失败',
        self::ERR_FAIL => '失败',
        self::ERR_NETWORK_BUSY => '网络繁忙，请稍后重试',
        self::ERR_NETWORK_ERROR => '当前网络不佳，请稍后重试',
        self::ACCESS_TOKEN_IS_INVALID => 'ACCESS_TOKEN失效',
        self::USER_TOKEN_IS_INVALID => 'USER_TOKEN失效',
        self::USER_TOKEN_IS_ILLEGAL => '违法的ACCESS_TOKEN',
        self::NOT_FREQ => '操作太频繁了，请稍后重试',
        // END

        // 用户勋章佩戴类型已满
        self::MEDAL_USER_TYPE_FULL => '勋章最多只能佩戴3个哦~',

        // 邂逅
        self::MEET_EACH_NOT_JOIN => '对方未加入',
        self::MEET_NOT_MATCHING => '对方未加入~再试一次吧',
        self::MEET_GET_MATCHED_USER_FAIL => '无法获取匹配到的用户信息',

        // 群组
        self::GROUP_CHAT_USER_ALREADY_INVITE => '该用户已被邀请',

        // 道具
        self::PROP_IN_USE => '道具使用中',
        self::PROP_NOT_ENOUGH => '道具数量不足',

        //内容审核
        self::CONTENT_CHECK_ROBOT_ERR_MSG => '您提交的信息涉及敏感词汇,请重新填写',

        // 代充
        self::FINANCE_PROXY_BALANCE_ERR => '钻石库存不足',
        self::FINANCE_PROXY_MAX_ERR => '钻石超出限额',

        //匿名聊天
        self::ROOM_ANONNYM_LEAVE => '晚了一步，对方已离开',
        self::ROOM_ANONNYM_KICKING => '您被请出聊天室啦，请遵守规则唷',

        // 挖矿
        self::MINE_PICK_NOT_ENOUGH => '镐子数量不足',
        self::MINE_GIFT_FRAGMENT_NOT_ENOUGH => '礼物碎片数量不足',
        self::MINE_CRYSTAL_FRAGMENT_ENOUGH => '水晶数量不足',
        self::MINE_CLOSD => '矿场未开启',
        self::MINE_SMELT_NOT_ENOUGH => '炼金选择礼物不足',
        //公会
        self::UNION_CERTIFICATION_ERROR => '同一实名身份只能创建一个公会哦~',
        self::UNION_CREATE_TIMES_ERROR => '今日创建公会次数达到上限',
        self::UNION_USER_EXIST => '一个人最多只能加入一个公会哦~',
        self::UNION_UPDATE_NAME_ERROR => '24小时内只能修改一次哦~',
        self::UNION_CONTRIBUTION_NOT_ENOUGH =>'可用贡献值不足哦~',
        self::UNION_ACTIVE_RANK_NOT_ENOUGH => '公会活跃等级暂未达到解锁要求~',
        self::UNION_FINANCE_RANK_NOT_ENOUGH => '公会财富等级暂未打到解锁条件哦~',
        self::UNION_BAG_RECEIVED => '你已领取过该等级礼包~ ',
        self::UNION_DISSOLVE_ERROR => '验证码已过期，请重新校验',
        self::UNION_SHOP_SALE_OUT =>'商品已售空',
        self::NATIONAL_FORBID_UPDATE => '暂时无法修改~',
        //家族
        self::FAMILY_CERTIFICATION_ERROR => '同一实名身份只能创建一个家族哦~',
        self::FAMILY_USER_EXIST => '一个人最多只能加入一个公会哦~',
        self::FAMILY_CREATE_TIMES_ERROR => '今日创建公会次数达到上限',

        // 文件上传相关
        self::FILE_UPLOAD_CONFIG_ERR => '请检查oss配置是否正确',

        //推荐
        self::USER_HOBBY_ERR => '用户推荐信息不存在',
        self::USER_PAY_NOT_CERTIFICATION => '支付宝充值，请先进行实名认证，并确认填写的实名信息与支付宝一致',
        self::SAY_HELLO_FAIL => '',//不填任何错误信息
        self::RANDOM_MATCH_USER_FAIL => '当前线路拥堵，稍后再试一下哦~',
        self::ORIGAMI_TYPE_ID_ERROR => '折纸类型错误',
        self::ORIGAMI_CONTENT_IS_EMPTY => '折纸内容不能为空',
        self::ORIGAMI_AUDIT_FAIL => '折纸内容违规，请重新编辑',


        //蜜屋
        self::SECRET_ROOM_MINIMUM_PRICE_ERROR => '价格错误',
        self::SECRET_ROOM_TO_MUSH_TO_BE_ACCEPTED => '你已经邀请很多人啦，休息会吧~',
        self::SECRET_ROOM_INITIATOR_NOT_ONLINE => 'TA暂时不方便，待会再来找他吧~',
        self::SECRET_ROOM_EXPIRED => '该邀请刚刚失效了，太可惜了~',
        self::ROOM_IS_FULL => '这个房间里已经在互相陪伴啦，建个房间吧~',
        self::SECRET_ROOM_STATUS_HAS_CHANGED => '房间状态已经改变',
        self::SECRET_ROOM_CAN_NOT_SEND_TIMING_GIFT => '不能赠送计时礼物',
        self::SECRET_ROOM_CAN_NOT_SEND_GIFT_TO_SELF => '不能赠送礼物给自己',
        self::SECRET_ROOM_CAN_NOT_PLAY => '需要升级到最新版本才能进入该类型房间哦~',
        self::SECRET_ROOM_CAN_NOT_BE_INVITED => '对方还不是最新版本哦~快去提醒TA更新一起玩吧~',
        self::SECRET_ROOM_CANCEL_BY_INITIATOR => '对方已取消邀请~',

        self::SECRET_ROOM_CAN_NOT_SEND_BOX_TO_SELF => '不能赠送宝箱给自己',

        //银联云闪付
        self::UNION_PAY_ORDER_STATUS_CHANGED => '订单状态已改变',
        self::UNION_PAY_REQUEST_ERROR => '发起退款请求时，发生错误',
        self::UNION_PAY_REFUNDED_FAIL => '退款失败',

        self::LIMITED_TIME_GIFT_NOT_ALLOWED_SEND => '手慢了，礼物已下架，重新打开礼物栏可刷新',

        self::LEVEL_GRADE_GIFT_NOT_ALLOWED_SEND => '等级值未达到，不能发送',
        self::GIFT_IS_NOT_DOUBLE_HIT_GIFT => '该礼物不是升级礼物',
        self::GIFT_CONFIG_IS_WRONG => '获取礼物配置错误',
        self::GIFT_CONFIG_LEVEL_IS_NOT_EXIST => '礼物等级不存在',
        self::GIFT_SENT_NUM_NOT_SATISFIABLE => '赠送的礼物数不足，不能佩戴',
        self::UNIVERSE_CHANGE_ERROR =>'奖池已更换',
        self::DEFENDER_POOL_CHANGE =>'奖池已更换',

        self::USER_VERIFY_TX_FACE_1 => '无法确认为同一人',
        self::USER_VERIFY_TX_FACE_2 => '姓名和身份证不一致，请确认',
        self::USER_VERIFY_TX_FACE_3 => '声音未能识别，请大声慢读一遍数字',
        self::USER_VERIFY_TX_FACE_4 => '未识别到指定动作',
        self::USER_VERIFY_TX_FACE_5 => '光线太强，请到室内识别',
        self::USER_VERIFY_TX_FACE_6 => '网络不给力，请稍后重试',
        self::USER_VERIFY_TX_FACE_7 => '请求参数异常',
        self::USER_VERIFY_TX_FACE_8 => '服务不可用（已欠费或主动停服，请联系技术支持确认）',
        self::USER_VERIFY_TX_FACE_9 => '试用版最大刷脸次数已超',
        self::USER_VERIFY_TX_FACE_10 => '此证件信息不支持校验',
        self::USER_VERIFY_TX_FACE_11 => '未完成认证或认证结果已过期',
        self::USER_VERIFY_TX_FACE_12 => '姓名或身份证号格式不正确',
        self::USER_VERIFY_TX_FACE_13 => '视频或图片异常',
        self::USER_VERIFY_TX_FACE_14 => '验证次数超限',
        self::USER_VERIFY_TX_FACE_15 => '操作超时，请退出重试',
        self::USER_VERIFY_TX_FACE_16 => '请确保本人操作且正脸对框',
        self::USER_VERIFY_TX_FACE_17 => '未识别到人脸，请确保正脸对框且清晰完整',
        self::USER_VERIFY_TX_FACE_18 => '照片出现多张脸',
        self::USER_VERIFY_TX_FACE_19 => '脸部有遮挡或闭眼，请重试',
        self::USER_VERIFY_TX_FACE_20 => '应用服务版本过低，请升级',
        self::USER_VERIFY_TX_FACE_21 => '比对源照片无法处理',
        self::USER_VERIFY_TX_FACE_22 => '无此授权结果',
        self::USER_VERIFY_TX_FACE_23 => '请确保本人操作且正脸对框',
        self::USER_VERIFY_TX_FACE_24 => '签名校验不通过',
        self::USER_VERIFY_TX_FACE_25 => 'IP 未加入白名单列表（请线下联系技术支持进行配置）',
        self::USER_VERIFY_TX_FACE_26 => '不合法请求',
        self::USER_VERIFY_TX_FACE_27 => '请求频率过高，请稍后再试',
        self::USER_VERIFY_TX_FACE_28 => '【微信】下载视频失败，请重试',
        self::USER_VERIFY_TX_FACE_29 => '视频或图片异常',
    ];

    /**
     * @param code
     * @param msg
     * @param join 默认false 参数拼接 true：codeMsg + msg
     * @param orderBy 默认false 参数顺序拼接倒换  true：msg + codeMsg
     * */
    static function getErrCodeMsg($code, $msg = '', $join = false, $orderBy = false)
    {
        if ($orderBy and $join and !empty($msg)) {
            return $msg . self::$Msg[$code];
        }

        if ($join and !empty($msg)) {
            return self::$Msg[$code] . '：' . $msg;
        }

        if (!empty($msg)) {
            return $msg;
        }

        return self::$Msg[$code];
    }


}

